class TakeComment extends React.Component{
    async addWeibo(){
        // console.log(1111111111,this.refs.context.value);
        // 提交信息
        const data = await this.$axios.post("/weibo",{
            content:this.refs.context.value
        })
        this.refs.context.value = null;
        this.props.getWeibo();
    }
    render(){
        return (
            <div className="takeComment">
                <textarea  ref={"context"} name="textarea" className="takeTextField" id="tijiaoText"></textarea>
                <div className="takeSbmComment">
                    <input type="button" onClick={this.addWeibo.bind(this)} className="inputs" value=""/>
                </div>
            </div>
        )
    }
}